<!DOCTYPE html>
<html lang="ch">
<!--开启session-->
<?php session_start(); ?>
<head>
    <meta charset="utf-8">
    <title>多门店管理系统</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="css/bootstrap-table.min.css">
    <script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/bootstrap-table.min.js"></script>
    <script src="js/bootstrap-table-zh-CN.min.js"></script>

    <!--    js获取日期-->
    <script>
        $(function time() {
            var now = new Date();
            var year = now.getFullYear();
            var month = now.getMonth();
            var date = now.getDate();
            //获取相应ID
            document.getElementById("timer").innerHTML = "时间：" + year + "年" + (month + 1) + "月" + date + "日";
        })
    </script>
</head>
<body style="background: #eeeeee">
<div class="jumbotron text-center" style="margin-bottom:0; ">
    <h1>多门店管理系统</h1>
    <div id="timer" style="float: right; font-size: 20px;"></div>
</div>

<nav class="navbar navbar-inverse">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
        </div>
        <div class="collapse navbar-collapse" id="myNavbar">
            <ul class="nav navbar-nav">
                <li><a href="main.php" style="font-size: 20px;">我的信息</a></li>
                <li><a href="search.php" style="font-size: 20px;">库存查询</a></li>
                <li><a href="purchase.php" style="font-size: 20px;">进货</a></li>
                <li><a href="sell.php" style="font-size: 20px;">售货</a></li>
                <li><a href="less.php" style="font-size: 20px;">缺货情况</a></li>
                <li><a href="transfer1.php" style="font-size: 20px;">发出的申请</a></li>
                <li><a href="transfer2.php" style="font-size: 20px;">收到的申请</a></li>
                <li><a href="statistic1.php" style="font-size: 20px;">本店销售排名</a></li>
                <li><a href="statistic2.php" style="font-size: 20px;">销售记录</a></li>
            </ul>
        </div>
    </div>
</nav>

<div class="container">
    <div class="row">
        <div class="col-md-12" style="font-size: 50px;">
            <p>欢迎登录多门店管理系统，<?php echo $_SESSION['user']['id']; ?></p>
            <p>亲爱的<?php echo $_SESSION['user']['name']; ?>，</p>
            <p>你是<?php echo $_SESSION['user']['shop_id']; ?>号店的<?php echo $_SESSION['user']['type']; ?></p>
            <p>今天也要加油工作哦~~</p>
            <button type="button" onclick="window.location.href='0.2LogOut.php'" class="btn btn-primary btn-lg ">
                切换用户
            </button>
        </div>
    </div>
</div>

</body>
</html>